/*
 * camcpp.cc
 *
 *  Created on: Jul 25, 2012
 *      Author: jsramosp
 */

#include <playerclient.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>

//#include "args.h"

int main(int argc, char *argv[]) 
{

	uint32_t gIndex(0);
	
	//parse_args(argc, argv);

	PlayerClient client("localhost",6665);
	CameraProxy::CameraProxy cp(&client, gIndex);

	for (uint32_t i=0; i<10; ++i)
	{
	  client.Read();
//	  cp.Decompress();
	  
	  cp.SaveFrame("camera");
//	  printf("%i\n",(int) &cp.image);
	}
  
  return 1;
}
